<?php
session_start();
if(empty($_SESSION['id']))
{
	header('location:login.php');
}
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>我的信息</title>
<style>
#divcss5{ margin:5px auto} 
#divcss5 img{ border-radius:22%}
</style>
</head>
<body bgcolor="#eaeaec" background="bg.png" style=" background-repeat:no-repeat ;
background-size:40%; 
background-attachment: fixed;">
<?php
require 'config.php';
$sql="select * from user where id=".$_SESSION['id'];
$query=mysqli_query($conn,$sql);
$rs=mysqli_fetch_assoc($query);
@$time=date('Y-m-d H:i:s');
?>
<form>
<br><br><br><br><br>
<table bgcolor="white" border="0" align="center" width="33%" style="border-radius:20px;" >
	<tr><td><br></td></tr>
	<tr>
		<th colspan="3">我的信息</th>
	</tr>
	<tr>
		<th width="30%">账&nbsp;号：</th>
		<td colspan="2"><input type="text" value="<?php echo $_SESSION['user']?>" disabled></td>
	</tr>
	<tr>
		<th>姓&nbsp;名：</th>
		<td colspan="2"><input type="text" value="<?php echo $rs['name']?>" disabled></td>
	</tr>
	<tr>
		<th>头像:</th>
		<td  colspan="2" id="divcss5"><img src="upload/<?php echo $rs['newname']?>" width="38" ></td>
	</tr>
	<tr>
		<th>注册时间：</th>
		<td colspan="2"><input type="text" value="<?php echo $rs['time']?>" disabled></td>
	</tr>
	<tr>
		<th>手机号：</th>
		<td colspan="2"><input type="text" value="<?php echo $rs['tel1']?>&<?php echo $rs['tel2']?>" disabled></td>
	</tr>
	<tr>
		<th>邮&nbsp;箱：</th>
		<td colspan="2"><input type="text" value="<?php echo $rs['mail']?>" disabled></td>
	</tr>
	<tr>
		<th>班&nbsp;级:</th>
		<td colspan="2"><input type="text" value="<?php echo $rs['class']?>" disabled></td>
	</tr>
	<tr>
	<td></td>
	<th>点我<a href="quit.php"  onclick="return confirm('确定退出吗?')">退出</a></th>
	</tr>
	<tr><td><br></td></tr>
</table>
<br><br><br>
<table width="33%" style="color:#fff;border-radius:10px;" bgcolor="#b6d6d5" align="center" border="0">
<tr>
	<th>本页仅显示个人信息，无法更改</th>
</tr>
</table>
</form>
</body>
</html>
